// import localforage from 'localforage'
// const localforage = require('localforage')
import Cookies from 'js-cookie'

const TokenKey = 'sudio-Token'

const TenantKey = 'Tenant-Id'

export function getToken () {
  return Cookies.get(TokenKey)
}

export function setToken (token) {
  return Cookies.set(TokenKey, token)
}

export function getTenantId () {
  return Cookies.get(TenantKey)
}

export function setTenantId (tenantId) {
  return Cookies.set(TenantKey, tenantId)
}

export function removeToken () {
  return Cookies.remove(TokenKey)
}
